import request from '@/utils/request'

export function resourceTable(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_BLOG_API}/api/training/resource/table`,
    method: 'post',
    data: query
  })
}

export function resourceLoad(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_BLOG_API}/api/training/resource/load`,
    method: 'get',
    params: query
  })
}

export function resourceSave(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_BLOG_API}/api/training/resource/save`,
    method: 'post',
    data: query
  })
}

export function resourceDelete(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_BLOG_API}/api/training/resource/delete`,
    method: 'post',
    data: query
  })
}
